import request from '../utils/request'
import config from '../utils/config'

export function login(params) {
  return request({
    url: `${config.host}`,
    method: 'post',
    data:{
        ac:'login',
        ...params
    },
    isNoToken: true
  })
}


export function getOpenId(params) {
  return request({
    url: `${config.host}`,
    method: 'post',
    data:{
        ac:'openid_get',
        ...params
    },
    isNoToken: true
  })
}